package xt.outfood;


import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author 小小爱欧
 * @date 2022/7/19 14:33
 */
@Slf4j
@SpringBootApplication
/**
 * @ServletComponentScan注解是扫描过滤器，使过滤器生效
 */
@ServletComponentScan
/**
 * @EnableTransactionManagement注解是开启事务注解的支持
 */
@EnableTransactionManagement
/**
 * @EnableCaching开启spring cache缓存数据
 */
@EnableCaching
public class MyOutFoodApplication {
    public static void main(String[] args) {
        SpringApplication.run(MyOutFoodApplication.class,args);
        log.info("项目启动成功.............");
    }
}
